<?php 
class Application_Form_modifiernamecolonne extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	
    	$this->setName("Formulairemodifiernamecolonne");
    	
    	$id = new Zend_Form_Element_Hidden('idPILOT_NAMECOLUMN');
    	$id->setLabel('');
    	
    	$label = new Zend_Form_Element_Text('LABELLANGUE');
    	$label->setLabel('Label');
    	 
    	$plate = new Application_Model_Mapper_PilotListcolumn();
    	
    	$select=$plate->fetchAllToArray();
    	 
    	$tmp=array();
    	$tmp['selectionner une listecolum']="colonne";
    	
    	$tmp=array();
    	$tmp['']="selectionner definition de colonne";
    	foreach ($select as $key => $value ){
    		$tmp[ $value['idPILOT_LISTCOLUMN'] ] = $value['COLUMNNAME'];
    	}
    	$listModelActivite = array("multiOptions" => $tmp);
    	 
    	$listcolonne= new Zend_Form_Element_Select('idPILOT_LISTCOLUMN',  $listModelActivite);
    	$listcolonne->setLabel('Liste colonne')	;
    	
    	$mapper= new Application_Model_Mapper_Langue();
    	$select=$mapper->fetchAllToArray();
    	
    	
    	$tmp=array();
    	$tmp['']="selectionner une langue";
    	foreach ($select as $key => $value ){
    		$tmp[ $value['idLANGUE'] ] = $value['idLANGUE'];
    	}
    	$listdeslangues = array("multiOptions" => $tmp);
    	
    	$lang= new Zend_Form_Element_Select('idLANGUE',  $listdeslangues);
    	$lang->setLabel('Langue')	;
    	
    	$valider = new Zend_Form_Element_Submit("submit");
    	$valider->setLabel("Modifier");
    	 
    	
    	$this->addElements(array($id,$listcolonne,$label,$lang,$valider));
    	$this->setDecorators( array( array('ViewScript', array('viewScript' => 'protypeform.phtml'))));
    	
    	
    	
    }


}

